package com.lenovo.lcdm.type.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lenovo.lcdm.common.enums.DeleteFlagEnum;
import com.lenovo.lcdm.type.entity.TypeAttributeGroupSort;
import com.lenovo.lcdm.type.mapper.TypeAttributeGroupSortMapper;
import com.lenovo.lcdm.type.service.TypeAttributeGroupSortService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xujing30
* @description 针对表【type_attribute_group_sort】的数据库操作Service实现
* @createDate 2024-01-17 16:58:48
*/
@Service
public class TypeAttributeGroupSortServiceImpl extends ServiceImpl<TypeAttributeGroupSortMapper, TypeAttributeGroupSort>
    implements TypeAttributeGroupSortService {

    @Override
    public List<TypeAttributeGroupSort> getByTypeId(Long typeId) {
        LambdaQueryWrapper<TypeAttributeGroupSort> qw = new LambdaQueryWrapper<>();
        qw.eq(TypeAttributeGroupSort::getTypeId, typeId).eq(TypeAttributeGroupSort::getDeleted, DeleteFlagEnum.NO.getValue());
        return list(qw);
    }
}




